const arrayObjectStr = "[object array]";
const stringObjectStr = "[object string]";
const functionObjectStr = "[object function]";

export const getObjectStr = (obj: string): string => Object.prototype.toString.call(obj).toLowerCase();

export const isArray = (array: any): boolean => getObjectStr(array) === arrayObjectStr;

export const isString = (str: any): boolean => getObjectStr(str) === stringObjectStr;

export const isFunction = (str: any): boolean => getObjectStr(str) === functionObjectStr;
